package cn.fuego.busrental.ui.user;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import cn.fuego.busrental.R;
import cn.fuego.misp.ui.base.MispBaseActivtiy;

public class SystemSetActivity extends MispBaseActivtiy {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
	}
	public static void jump(Context context)
	{
		Intent intent = new Intent();
		intent.setClass(context, SystemSetActivity.class);		
		context.startActivity(intent);
	}
	@Override
	public void initRes() {
		this.activityRes.setAvtivityView(R.layout.activity_system_set);
		this.activityRes.getButtonIDList().add(R.id.set_about_us);
		this.activityRes.getButtonIDList().add(R.id.set_opinion_back);
		this.activityRes.getButtonIDList().add(R.id.set_get_mark);
		this.activityRes.getButtonIDList().add(R.id.set_version_update);
		this.activityRes.getButtonIDList().add(R.id.set_password_update);
		
		
		
	}
	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.set_about_us:
			setContentView(R.layout.set_about_we);
			break;
		case R.id.set_opinion_back:
			setContentView(R.layout.set_opinion_back);
			Button b=(Button) findViewById(R.id.opinion_summit_btn);
			b.setOnClickListener(new OnClickListener() {
				
				@Override
				public void onClick(View v) {
					finish();
					
				}
			});
			break;
		case R.id.set_get_mark:
			setContentView(R.layout.set_get_mark);
		     Button b1=(Button) findViewById(R.id.mark_summit_btn);
			b1.setOnClickListener(new OnClickListener() {
						
						@Override
						public void onClick(View v) {
							finish();
							
						}
					});
			break;

		case R.id.set_version_update:
			setContentView(R.layout.set_version_update);
			Button b2=(Button)findViewById(R.id.version_update_btn);
			b2.setOnClickListener(new OnClickListener() {
				
				@Override
				public void onClick(View v) {
					finish();
					
				}
			});
			break;
		case R.id.set_password_update:
			setContentView(R.layout.set_password_update);
			Button b3=(Button)findViewById(R.id.set_password_update);
			b3.setOnClickListener(new OnClickListener() {
				
				@Override
				public void onClick(View v) {
					finish();
					
				}
			});
			break;
	

		default:
			break;
		}
	}
	
	
}
